﻿#ifndef COMMON_H
#define COMMON_H

#include <QString>
class CIniFile;
class QFile;
class CHttpProc;
class CCommon
{
private:
    CCommon(void);
    ~CCommon(void);

public:
    static CCommon* Instance();
    static void Uninstance();
    static CCommon* pThis;
    static int g_nScreenW;
    static int g_nScreenH;
    static QString strAppDir;
    static QFile* gLog;

    void SetIniFilePtr(CIniFile* pIniFile) { m_pIniFile = pIniFile; }
    CIniFile* GetIniFilePtr() { return m_pIniFile; }

    void SetHttpPtr(CHttpProc* pHttpProc) { m_pHttpProc = pHttpProc;}
    CHttpProc* GetHttpPtr() { return m_pHttpProc;}

private:

   CIniFile* m_pIniFile;
   CHttpProc* m_pHttpProc;
};
#endif // COMMON_H
